<?php


namespace EchoPHP\View;


use EchoPHP\Foundation\ServiceProvider;

class ViewServiceProvider extends ServiceProvider {

    protected $defer = true;

    public function register() {
        $this->app->singleton('view', function () {
            return new View($this->app);
        });
    }

    public function provides() {
        return ['view'];
    }
}